package com.ruoyi.finance.welfareRecharge.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.finance.welfareRecharge.mapper.FiWelfareRechargeMapper;
import com.ruoyi.finance.welfareRecharge.domain.FiWelfareRecharge;
import com.ruoyi.finance.welfareRecharge.service.IFiWelfareRechargeService;

/**
 * 福利充值Service业务层处理
 * 
 * @author wangmh
 * @date 2023-09-17
 */
@Service
public class FiWelfareRechargeServiceImpl implements IFiWelfareRechargeService 
{
    @Autowired
    private FiWelfareRechargeMapper fiWelfareRechargeMapper;

    /**
     * 查询福利充值
     * 
     * @param id 福利充值主键
     * @return 福利充值
     */
    @Override
    public FiWelfareRecharge selectFiWelfareRechargeById(Long id)
    {
        return fiWelfareRechargeMapper.selectFiWelfareRechargeById(id);
    }

    /**
     * 查询福利充值列表
     * 
     * @param fiWelfareRecharge 福利充值
     * @return 福利充值
     */
    @Override
    public List<FiWelfareRecharge> selectFiWelfareRechargeList(FiWelfareRecharge fiWelfareRecharge)
    {
        return fiWelfareRechargeMapper.selectFiWelfareRechargeList(fiWelfareRecharge);
    }

    /**
     * 新增福利充值
     * 
     * @param fiWelfareRecharge 福利充值
     * @return 结果
     */
    @Override
    public int insertFiWelfareRecharge(FiWelfareRecharge fiWelfareRecharge)
    {
        return fiWelfareRechargeMapper.insertFiWelfareRecharge(fiWelfareRecharge);
    }

    /**
     * 修改福利充值
     * 
     * @param fiWelfareRecharge 福利充值
     * @return 结果
     */
    @Override
    public int updateFiWelfareRecharge(FiWelfareRecharge fiWelfareRecharge)
    {
        return fiWelfareRechargeMapper.updateFiWelfareRecharge(fiWelfareRecharge);
    }

    /**
     * 批量删除福利充值
     * 
     * @param ids 需要删除的福利充值主键
     * @return 结果
     */
    @Override
    public int deleteFiWelfareRechargeByIds(Long[] ids)
    {
        return fiWelfareRechargeMapper.deleteFiWelfareRechargeByIds(ids);
    }

    /**
     * 删除福利充值信息
     * 
     * @param id 福利充值主键
     * @return 结果
     */
    @Override
    public int deleteFiWelfareRechargeById(Long id)
    {
        return fiWelfareRechargeMapper.deleteFiWelfareRechargeById(id);
    }
}
